import { request } from '../util/index.js';
export default {
    login: ({ username, password }) =>
        request({
            url: '/users/login',
            data: { username, password },
        }),
    reg: ({ username, password }) =>
        request({
            url: '/users/reg',
            type: 'POST',
            data: { username, password },
        }),
}